package abacab.serialization.huffman;

/**
 * Represents a node in the binary tree
 */
public class LeafNode extends Node {
	/** The character */
	private final char	character;

	/**
	 * Create the node
	 * 
	 * @param character
	 *          the character
	 * @param weight
	 *          the node's weight
	 */
	public LeafNode(char character, int weight) {
		super(weight);
		this.character = character;
	}

	@Override
	public char getCharacter() {
		return this.character;
	}

	@Override
	public final Node getLeft() {
		return null;
	}

	@Override
	public final Node getRight() {
		return null;
	}
}